sync.WaitGroup.state (field)
7 uses
sync (current package)
waitgroup.go#L26: state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
waitgroup.go#L52: state := wg.state.Add(uint64(delta) << 32)
waitgroup.go#L75: if wg.state.Load() != state {
waitgroup.go#L79: wg.state.Store(0)
waitgroup.go#L96: state := wg.state.Load()
waitgroup.go#L108: if wg.state.CompareAndSwap(state, state+1) {
waitgroup.go#L117: if wg.state.Load() != 0 {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |